<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>
<%@page import="com.jumlabs.entities.navigation.*"%>
<c:set var="selectedTopNavigation"	value="${requestScope.topNavigation.selectedNavigationItem}" />
<div class="well sidebar-nav">
	<ul class="nav nav-list">
		<c:forEach var="menuNavigationItem"		items="${selectedTopNavigation.navigationItems}">	
			<li class="nav-header">${menuNavigationItem.label}</li>
			<c:forEach var="submenuNavigationItem" items="${menuNavigationItem.navigationItems}">
				<li <c:if test="${submenuNavigationItem.selected}">class="active"</c:if>  ><a href="${requestScope.contextPath}/<c:url value="${submenuNavigationItem.link.href}"/>">${submenuNavigationItem.label}</a></li>
			</c:forEach>		
		</c:forEach>		
	</ul>
</div>